Skip to content

[Fluent/InspectorV2] Fix bugs in number/text input; Add input validation UX; Refactor colorPicker to use new components #16998

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 13 commits into
base: master
Choose a base branch
from

Conversation

georginahalpern
Copy link
Contributor

@georginahalpern georginahalpern commented Aug 8, 2025

  • Separate out the input.tsx component into spinButton.tsx and textInput.tsx since spinButton is more appropriate for handling numerical values
  • Introduce forceInt param to NumerInputPropertyLine
  • Both spinButton and textInput now have input validation UX as the user types - if the input is valid, it will automatically propagate to parent. If not, it will display as red background and won't notify parent of change
image
  • ColorPicker.tsx refactored to use the new textInput/spinButtons directly,
  • InfoLabel now an optional param to PrimitiveProps so that primitives can optionally display an infoLabel (with or without the info popup) directly on the primitive value (distinct from the propertyline's label) -- colorpicker usage is refactored accordingly
  • Add units to spinbutton with inputvalidation as well
  • minor styling
image image image

@bjsplat
Copy link
Collaborator

bjsplat commented Aug 8, 2025

Please make sure to label your PR with "bug", "new feature" or "breaking change" label(s).
To prevent this PR from going to the changelog marked it with the "skip changelog" label.

@bjsplat
Copy link
Collaborator

bjsplat commented Aug 8, 2025

Please make sure to label your PR with "bug", "new feature" or "breaking change" label(s).
To prevent this PR from going to the changelog marked it with the "skip changelog" label.

@bjsplat
Copy link
Collaborator

bjsplat commented Aug 8, 2025

@bjsplat
Copy link
Collaborator

bjsplat commented Aug 8, 2025

You have changed file(s) that made possible changes to the sandbox.
You can test the sandbox snapshot here:

https://snapshots-cvgtc2eugrd3cgfd.z01.azurefd.net/SANDBOX/refs/pull/16998/merge/

@bjsplat
Copy link
Collaborator

bjsplat commented Aug 8, 2025

You have made possible changes to the playground.
You can test the snapshot here:

https://snapshots-cvgtc2eugrd3cgfd.z01.azurefd.net/PLAYGROUND/refs/pull/16998/merge/

The snapshot playground with the CDN snapshot (only when available):

https://snapshots-cvgtc2eugrd3cgfd.z01.azurefd.net/PLAYGROUND/refs/pull/16998/merge/?snapshot=refs/pull/16998/merge

Note that neither Babylon scenes nor textures are uploaded to the snapshot directory, so some playgrounds won't work correctly.

@bjsplat
Copy link
Collaborator

bjsplat commented Aug 8, 2025

@bjsplat
Copy link
Collaborator

bjsplat commented Aug 8, 2025

@sebavan sebavan requested a review from ryantrem August 8, 2025 18:23
@bjsplat
Copy link
Collaborator

bjsplat commented Aug 11, 2025

You have changed file(s) that made possible changes to the sandbox.
You can test the sandbox snapshot here:

https://snapshots-cvgtc2eugrd3cgfd.z01.azurefd.net/SANDBOX/refs/pull/16998/merge/

@bjsplat
Copy link
Collaborator

bjsplat commented Aug 11, 2025

Building or testing the playground has failed.

If the tests failed, results can be found here:
https://snapshots-cvgtc2eugrd3cgfd.z01.azurefd.net/PLAYGROUND/refs/pull/16998/merge/testResults/

@bjsplat
Copy link
Collaborator

bjsplat commented Aug 11, 2025

@bjsplat
Copy link
Collaborator

bjsplat commented Aug 11, 2025

@bjsplat
Copy link
Collaborator

bjsplat commented Aug 11, 2025

You have made possible changes to the playground.
You can test the snapshot here:

https://snapshots-cvgtc2eugrd3cgfd.z01.azurefd.net/PLAYGROUND/refs/pull/16998/merge/

The snapshot playground with the CDN snapshot (only when available):

https://snapshots-cvgtc2eugrd3cgfd.z01.azurefd.net/PLAYGROUND/refs/pull/16998/merge/?snapshot=refs/pull/16998/merge

Note that neither Babylon scenes nor textures are uploaded to the snapshot directory, so some playgrounds won't work correctly.

@bjsplat
Copy link
Collaborator

bjsplat commented Aug 11, 2025

You have changed file(s) that made possible changes to the sandbox.
You can test the sandbox snapshot here:

https://snapshots-cvgtc2eugrd3cgfd.z01.azurefd.net/SANDBOX/refs/pull/16998/merge/

@bjsplat
Copy link
Collaborator

bjsplat commented Aug 11, 2025

@bjsplat
Copy link
Collaborator

bjsplat commented Aug 11, 2025

@bjsplat
Copy link
Collaborator

bjsplat commented Aug 15, 2025

Please make sure to label your PR with "bug", "new feature" or "breaking change" label(s).
To prevent this PR from going to the changelog marked it with the "skip changelog" label.

@bjsplat
Copy link
Collaborator

bjsplat commented Aug 15, 2025

Please make sure to label your PR with "bug", "new feature" or "breaking change" label(s).
To prevent this PR from going to the changelog marked it with the "skip changelog" label.

@georginahalpern georginahalpern marked this pull request as ready for review August 15, 2025 23:27
@georginahalpern georginahalpern enabled auto-merge (squash) August 15, 2025 23:28
@bjsplat
Copy link
Collaborator

bjsplat commented Aug 15, 2025

@bjsplat
Copy link
Collaborator

bjsplat commented Aug 15, 2025

You have changed file(s) that made possible changes to the sandbox.
You can test the sandbox snapshot here:

https://snapshots-cvgtc2eugrd3cgfd.z01.azurefd.net/SANDBOX/refs/pull/16998/merge/

@bjsplat
Copy link
Collaborator

bjsplat commented Aug 15, 2025

Building or testing the playground has failed.

If the tests failed, results can be found here:
https://snapshots-cvgtc2eugrd3cgfd.z01.azurefd.net/PLAYGROUND/refs/pull/16998/merge/testResults/

@bjsplat
Copy link
Collaborator

bjsplat commented Aug 15, 2025

@bjsplat
Copy link
Collaborator

bjsplat commented Aug 15, 2025

@bjsplat
Copy link
Collaborator

bjsplat commented Aug 16, 2025

You have made possible changes to the playground.
You can test the snapshot here:

https://snapshots-cvgtc2eugrd3cgfd.z01.azurefd.net/PLAYGROUND/refs/pull/16998/merge/

The snapshot playground with the CDN snapshot (only when available):

https://snapshots-cvgtc2eugrd3cgfd.z01.azurefd.net/PLAYGROUND/refs/pull/16998/merge/?snapshot=refs/pull/16998/merge

Note that neither Babylon scenes nor textures are uploaded to the snapshot directory, so some playgrounds won't work correctly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants